package 房屋租赁系统.domain;

/**
 * @author hyhWTX
 * @version 1.0
 * @date 2022年05月22日 23:10
 */

/**
 * 展示一个房屋信息
 */
public class House {
    private String name;//房屋姓名
    private int id;//房屋编号
    private String phone;//联系电话
    private String address;//房屋地址
    private int rent;//房屋租金
    private String state;//房屋状态

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getRent() {
        return rent;
    }

    public void setRent(int rent) {
        this.rent = rent;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public House(String name, int id, String phone, String address, int rent, String state) {
        this.name = name;
        this.id = id;
        this.phone = phone;
        this.address = address;
        this.rent = rent;
        this.state = state;
    }

    @Override
    public String toString() {
        return "House{" +
                "name='" + name + '\'' +
                ", id=" + id +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", rent=" + rent +
                ", state='" + state + '\'' +
                '}';
    }
}